import {userindex} from'@/stores/index'
export function emailVerify(emailv){
  const email=/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/
  return email.test(emailv)
}

export function pswVerify(passwordv){
  const password=/^(?=.*[a-zA-Z])(?=.*\d).{1,9}$/
  return password.test(passwordv)
}

export function qufan(){
  const index=userindex()
  index.qt();
  index.increment();
  setTimeout(function () {
        index.quf();
    }, 1500)
}